﻿using FoodModel;
using J.IRepository;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace J.FoodRepository.InterFace
{
     public interface IDishesReposittory:IRepository<DishesModel>
     {
        /// <summary>
        /// 菜单添加
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        Task<int> DishesAdd(DishesModel model);
        /// <summary>
        /// 菜单修改
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        Task<int> DishesUpDate(DishesModel model);
        /// <summary>
        /// 菜单显示
        /// </summary>
        /// <returns></returns>
        Task<List<DishesModel>> DishesShow(string id);
        /// <summary>
        /// 菜单反填
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<DishesModel> DishesBack(int id);
        /// <summary>
        /// 菜单删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> DishesDelete(string id);
        /// <summary>
        /// 菜单开启点餐
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> DishesOpen(string id); /// <summary>
        /// 菜单开启点餐
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> DishesOpens(string id); /// <summary>
        /// 菜单关闭点餐
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> DishesShut(string id);
        /// <summary>
        /// 菜单修改字段
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> DishesOpenUpDate(string id,int GroupingId);
     }
}
